<article>
  <section class="markdown"><h1>Popover 气泡卡片</h1>
    <section class="markdown"><p>点击/鼠标移入元素，弹出气泡式的卡片浮层。</p>
      <h2 id="何时使用"><span>何时使用</span><a  class="anchor">#</a></h2>
      <ul>
        <li><p>当目标元素有进一步的描述和相关操作时，可以收纳到卡片中，根据用户的操作行为进行展现。</p></li>
        <li><p>和 <code>Tooltip</code> 的区别是，用户可以对浮层上的元素进行操作，因此它可以承载更复杂的内容，比如链接或按钮等。</p></li>
      </ul>
    </section>
    <h2>代码演示<i class="code-box-expand-trigger anticon anticon-appstore" title="展开全部代码"></i></h2>
  </section>
  <div nz-row [nzGutter]="8">
    <div nz-col [nzSpan]="12">
      <nz-code-box [nzTitle]="'基本'" id="components-popover-demo-basic" [nzCode]="NzDemoPopoverBasicCode">
        <nz-demo-popover-basic demo></nz-demo-popover-basic>
        <div intro>
          <p>最简单的用法。</p>
        </div>
      </nz-code-box>

      <nz-code-box [nzTitle]="'三种触发方式'" id="components-popConfirm-demo-local" [nzCode]="NzDemoPopoverTriggerCode">
        <nz-demo-popover-trigger demo></nz-demo-popover-trigger>
        <div intro>
          <p>鼠标移入、聚集、点击。</p>
        </div>
      </nz-code-box>
    </div>
    <div nz-col [nzSpan]="12">
      <nz-code-box [nzTitle]="'位置'" id="components-popover-demo-location" [nzCode]="NzDemoPonoverLocationCode">
        <nz-demo-popover-location demo></nz-demo-popover-location>
        <div intro>
          <p>位置有十二个方向</p>
        </div>
      </nz-code-box>

      <nz-code-box [nzTitle]="'从浮层内关闭'" id="components-popConfirm-demo-kick" [nzCode]="NzDemoPopoverClickHide">
        <nz-demo-popover-clickhide demo></nz-demo-popover-clickhide>
        <div intro>
          <p>使用<code>nzVisible</code>属性控制浮层显示</p>
        </div>
      </nz-code-box>
    </div>
  </div>
  <section class="markdown api-container"><h2 id="API"><span>API</span><!-- <a class="anchor">#</a> --></h2>
    <h3 id="Rate"><span>nz-popover</span><!-- <a class="anchor">#</a> --></h3>
    <table>
      <thead>
        <tr>
          <th>参数</th>
          <th>说明</th>
          <th>类型</th>
          <th>默认值</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>nzPlacement</td>
          <td>气泡框位置，可选
            <code>top</code><code>left</code><code>right</code><code>bottom</code><code>topLeft</code><code>topRight</code>
            <br>
            <code>bottomLeft</code><code>bottomRight</code><code>leftTop</code><code>leftBottom</code><code>rightTop</code><code>rightBottom</code>
          </td>
          <td>String</td>
          <td>top</td>
        </tr>
        <tr>
          <td>nzTemplate</td>
          <td>用于定义Content内容
          </td>
          <td>ng-template</td>
          <td></td>
        </tr>
        <tr>
          <td>nzVisible</td>
          <td>用于手动控制浮层显隐 双向绑定</td>
          <td>Boolean</td>
          <td>false</td>
        </tr>
        <tr>
          <td>nzVisibleChange</td>
          <td>显示隐藏的回调</td>
          <td>EventEmitter</td>
          <td>无</td>
        </tr>
        <tr>
          <td>nzTrigger</td>
          <td>触发行为，可选 <code>hover/focus/click</code>
          </td>
          <td>String</td>
          <td>hover</td>
        </tr>
        <tr>
          <td>nzOverlayClassName</td>
          <td>卡片类名</td>
          <td>String</td>
          <td>无</td>
        </tr>
        <tr>
          <td>nzOverlayStyle</td>
          <td>卡片样式</td>
          <td>object</td>
          <td>无</td>
        </tr>
      </tbody>
    </table>
  </section>
</article>
